import request from '@/utils/request';

// 分类列表
export const getCategoryList = params => {
  return request({
    url: '/Article/category-list',
    method: 'get',
    params
  })
};
// 新增/修改分类
export const changeCategory = (url, data) => {
  return request({
    url,
    method: 'post',
    data
  })
};
// 删除分类
export const deleteCategory = data => {
  return request({
    url: '/Article/category-delete',
    method: 'post',
    data
  })
};